package com.dhcc.bpm.modules.gateway.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName Authcenter
 * @Description 授权中心表实体类
 * @Author YaoZC
 * @Date 2019/11/26 16:08
 * @Version 1.0
 * @Copyright: 2019 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_authcenter")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Authcenter对象", description = "授权中心表")
public class Authcenter extends BaseEntity {

	private static final long serialVersionUID = 1L;

		/**
		* 授权中心名称
		*/
		@ApiModelProperty(value = "授权中心名称")
		private String authcenterName;
		/**
		* 授权中心英文名称
		*/
		@ApiModelProperty(value = "授权中心英文名称")
		private String authcenterEname;
		/**
		* 是否为内部服务
		*/
		@ApiModelProperty(value = "是否为内部服务")
		private String isInside;
		/**
		* 内部服务名
		*/
		@ApiModelProperty(value = "内部服务名")
		private String authServerName;
		/**
		* 授权中心url
		*/
		@ApiModelProperty(value = "授权中心url")
		private String authcenterUri;
		/**
		* 路径
		*/
		@ApiModelProperty(value = "路径")
		private String prefUrl;
		/**
		* 网关
		*/
		@ApiModelProperty(value = "网关")
		private String gateway;
		/**
		* 描述
		*/
		@ApiModelProperty(value = "描述")
		@TableField(value = "`describe`")
		private String describe;
		/**
		* 后端服务
		*/
		@ApiModelProperty(value = "后端服务")
		@JsonSerialize(
				using = ToStringSerializer.class,
				nullsUsing = NullSerializer.class
		)
		private Long backserviceId;
		/**
		* 网关路由
		*/
		@ApiModelProperty(value = "网关路由")
		@JsonSerialize(
				using = ToStringSerializer.class,
				nullsUsing = NullSerializer.class
		)
		private String routeId;
		/**
		* 是否刷新
		*/
		@ApiModelProperty(value = "是否刷新")
		@JsonSerialize(
				using = ToStringSerializer.class,
				nullsUsing = NullSerializer.class
		)
		private Integer isRefresh;

}
